* {
    font-family:"montserrat",sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background:#333;
}

.login-box {
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100vh;
    background-image:linear-gradient(45deg,#9fbaa8,#31354c);    /*45度角颜色渐变*/
    transition:0.4s;
}
.login-form {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:white;
    text-align:center;
}

.login-form h1{
    font-weight:400;
    margin-top:0;
}

.txtb {
    display: block;
    box-sizing: border-box;
    width: 240px;
    background: #bdc3c7;
    border: 1px solid white;
    padding: 10px 20px 10px 30px;
    color: white;
    outline: none;
    margin: 10px 0;
    border-radius: 6px;
    /*text-align:center;*/
}

.login-btn {
    width: 240px;
    background: #2c3e50;
    border:0;
    color:white;
    padding:10px;
    border-radius:6px;
    cursor:pointer; /*手型*/
}
.hide-login-btn {
    color:#000;
    position:absolute;
    top:40px;
    right:40px;
    font-size:24px;
    opacity:.7; /*透明度*/
    cursor:pointer;
}

.show-login-btn{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:white;
    border:2px solid;
    padding:10px;
    cursor:pointer;
    border-radius:6px;
}
    .show-login-btn span {
        margin: 0 0 0 8px;
    }
.showed {
    left: 0;
}
.input-box {
    position: relative;
}
.input-box i {
    position: absolute;
    top: 10px;
    left: 9px;
}